import P2POperational.CentralNode;
import P2POperational.Node;

/**
 * Created with IntelliJ IDEA.
 * Authors: Henrique Alberto Rusa and Danilo Barbosa Porto
 * Date: 07/12/13
 *
 * Main class to call the filesystem application developed
 */
public class P2P {

    public static void main( String [] args ){

        if (args.length == 2){
            if(args[0].equals("Central")){
                // if parameter is P2P central frontend than it will be a central node
                new CentralNode(args[0],args[1]);
            } else {
                // if parameter is P2P /opt/grupo03a/direc node1 than it will be a node of the system
                new Node(args[0],args[1]);
            }
        }

    }
}
